package zzzhc.image.ui;

import java.awt.BorderLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

public class StatusBar extends JPanel {

	private static final long serialVersionUID = -6226570647145329512L;

	private JLabel label;

	/**
	 * This is the default constructor
	 */
	public StatusBar() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setLayout(new BorderLayout());
		this.setSize(400, 25);
		this.label = new JLabel("OK");
		label.setHorizontalAlignment(SwingConstants.LEFT);
		this.add(label, BorderLayout.CENTER);
	}

	public void setText(String text) {
		label.setText(text);
	}

} // @jve:decl-index=0:visual-constraint="10,10"
